﻿using System;
using System.Data;
using System.Text;

namespace BusDiary.Entity
{
    public class DiaryContent
    {

        #region property
        int _ID = 0;

        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }
        DateTime _Date = DateTime.Now;

        public DateTime Date
        {
            get
            {
                return _Date;
            }
            set
            {
                _Date = value;
            }
        }
        string _Content = string.Empty;

        public string Content
        {
            get
            {
                return _Content;
            }
            set
            {
                _Content = value;
            }
        }
        int _CatalogID = 0;

        public int CatalogID
        {
            get
            {
                return _CatalogID;
            }
            set
            {
                _CatalogID = value;
            }
        }
        #endregion
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();
            builder.AppendFormat(null, "ID={0}", ID);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Date={0}", Date);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Content={0}", Content);
            builder.Append("\r\n");
            builder.AppendFormat(null, "CatalogID={0}", CatalogID);
            builder.Append("\r\n");

            return builder.ToString();
        }
    }
}
